package com.evony.client.action 
{
    import com.evony.common.*;
    import com.evony.common.beans.*;
    import com.evony.common.module.*;
    import com.evony.common.module.colony.*;
    
    public class ColonyCommands extends Object
    {
        public function ColonyCommands()
        {
            super();
            return;
        }

        public function reduceArmaments(arg1:int, arg2:int, arg3:Function=null):com.evony.common.module.colony.ColonyLevyeRespone
        {
            this._reduceArmaments_callback = arg3;
            var loc1:*;
            (loc1 = new Object()).castleId = arg1;
            loc1.targetCastleId = arg2;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.reduceArmaments", loc1);
            }
            return null;
        }

        public function speedUpAbandonColony(arg1:int, arg2:int, arg3:String, arg4:Function=null):com.evony.common.module.CommandResponse
        {
            this._speedUpAbandonColony_callback = arg4;
            var loc1:*;
            (loc1 = new Object()).castleId = arg1;
            loc1.targetCastleId = arg2;
            loc1.itemId = arg3;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.speedUpAbandonColony", loc1);
            }
            return null;
        }

        public function getColonialCastlesInfo(arg1:int, arg2:Function=null):com.evony.common.module.colony.ColonialCastlesRespone
        {
            this._getColonialCastlesInfo_callback = arg2;
            var loc1:*=new Object();
            loc1.castleId = arg1;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.getColonialCastlesInfo", loc1);
            }
            return null;
        }

        public function setSender(arg1:com.evony.common.Sender):void
        {
            this.sender = arg1;
            return;
        }

        public function levyArmy(arg1:int, arg2:int, arg3:Function=null):com.evony.common.module.colony.ColonyLevyeRespone
        {
            this._levyArmy_callback = arg3;
            var loc1:*;
            (loc1 = new Object()).castleId = arg1;
            loc1.targetCastleId = arg2;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.levyArmy", loc1);
            }
            return null;
        }

        public function getSuzerainColonialCastlesInfo(arg1:int, arg2:Function=null):com.evony.common.module.colony.ColonialCastlesRespone
        {
            this._getSuzerainColonialCastlesInfo_callback = arg2;
            var loc1:*=new Object();
            loc1.castleId = arg1;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.getSuzerainColonialCastlesInfo", loc1);
            }
            return null;
        }

        public function overviewColonialCastle(arg1:int, arg2:int, arg3:Function=null):com.evony.common.module.colony.OverviewColonyCastleRespone
        {
            this._overviewColonialCastle_callback = arg3;
            var loc1:*;
            (loc1 = new Object()).castleId = arg1;
            loc1.targetCastleId = arg2;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.overviewColonialCastle", loc1);
            }
            return null;
        }

        public function abandonColony(arg1:int, arg2:int, arg3:Function=null):com.evony.common.module.CommandResponse
        {
            this._abandonColony_callback = arg3;
            var loc1:*;
            (loc1 = new Object()).castleId = arg1;
            loc1.targetCastleId = arg2;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.abandonColony", loc1);
            }
            return null;
        }

        public function sowDiscord(arg1:int, arg2:int, arg3:Function=null):com.evony.common.module.CommandResponse
        {
            this._sowDiscord_callback = arg3;
            var loc1:*;
            (loc1 = new Object()).castleId = arg1;
            loc1.targetCastleId = arg2;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.sowDiscord", loc1);
            }
            return null;
        }

        public function levyPopulation(arg1:int, arg2:int, arg3:Function=null):com.evony.common.module.colony.ColonyLevyeRespone
        {
            this._levyPopulation_callback = arg3;
            var loc1:*;
            (loc1 = new Object()).castleId = arg1;
            loc1.targetCastleId = arg2;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.levyPopulation", loc1);
            }
            return null;
        }

        public function getDeployTroopsInfo(arg1:int, arg2:int, arg3:Function=null):com.evony.common.module.colony.ColonialDeployResponse
        {
            this._getDeployTroopsInfo_callback = arg3;
            var loc1:*;
            (loc1 = new Object()).castleId = arg1;
            loc1.targetCastleId = arg2;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.getDeployTroopsInfo", loc1);
            }
            return null;
        }

        public function setDeployTroops(arg1:int, arg2:int, arg3:com.evony.common.beans.TroopBean, arg4:Function=null):com.evony.common.module.CommandResponse
        {
            this._setDeployTroops_callback = arg4;
            var loc1:*;
            (loc1 = new Object()).castleId = arg1;
            loc1.targetCastleId = arg2;
            loc1.troopBean = arg3.toObject();
            if (this.sender != null) 
            {
                sender.sendMessage("colony.setDeployTroops", loc1);
            }
            return null;
        }

        public function levyFood(arg1:int, arg2:int, arg3:Function=null):com.evony.common.module.colony.ColonyLevyeRespone
        {
            this._levyFood_callback = arg3;
            var loc1:*;
            (loc1 = new Object()).castleId = arg1;
            loc1.targetCastleId = arg2;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.levyFood", loc1);
            }
            return null;
        }

        public function getColonialArmyInfo(arg1:int, arg2:int, arg3:Function=null):com.evony.common.module.colony.ColonialArmyResponse
        {
            this._getColonialArmyInfo_callback = arg3;
            var loc1:*;
            (loc1 = new Object()).castleId = arg1;
            loc1.targetCastleId = arg2;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.getColonialArmyInfo", loc1);
            }
            return null;
        }

        public function uprise(arg1:int, arg2:Function=null):com.evony.common.module.CommandResponse
        {
            this._uprise_callback = arg2;
            var loc1:*=new Object();
            loc1.castleId = arg1;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.uprise", loc1);
            }
            return null;
        }

        public function levyTaxes(arg1:int, arg2:int, arg3:Function=null):com.evony.common.module.colony.ColonyLevyeRespone
        {
            this._levyTaxes_callback = arg3;
            var loc1:*;
            (loc1 = new Object()).castleId = arg1;
            loc1.targetCastleId = arg2;
            if (this.sender != null) 
            {
                sender.sendMessage("colony.levyTaxes", loc1);
            }
            return null;
        }

        public var _uprise_callback:Function;

        public var _levyArmy_callback:Function;

        public var _abandonColony_callback:Function;

        public var _getDeployTroopsInfo_callback:Function;

        public var _reduceArmaments_callback:Function;

        public var _levyPopulation_callback:Function;

        public var _overviewColonialCastle_callback:Function;

        public var _getColonialArmyInfo_callback:Function;

        public var _getSuzerainColonialCastlesInfo_callback:Function;

        public var _speedUpAbandonColony_callback:Function;

        public var _levyTaxes_callback:Function;

        public var _sowDiscord_callback:Function;

        internal var sender:com.evony.common.Sender;

        public var _levyFood_callback:Function;

        public var _getColonialCastlesInfo_callback:Function;

        public var _setDeployTroops_callback:Function;
    }
}
